<template>
  <div class="warpper">
    <el-card>
      <div class="title jsb">
        <div class="left aic">
          <span class="iconfont icon-s_yonghuliebiao"></span>
          <h4>用户列表</h4>
        </div>
        <div class="right" @click="addUser">新增用户</div>
      </div>
    </el-card>

    <div class="dataList">
      <el-card>
        <el-table :data="tableData" border style="width: 100%">
          <el-table-column prop="date" label="Date" width="180" />
          <el-table-column prop="name" label="Name" width="180" />
          <el-table-column prop="address" label="Address" />
          <template #empty>
            <el-empty :image-size="200" description="暂无商品"> </el-empty>
          </template>
        </el-table>
      </el-card>
    </div>
  </div>
</template>
<script setup>
import { ref } from "vue";
const tableData = ref([]);
const addUser = () => {};
</script>
<style lang="scss" scoped>
$color: #409eff;

@import url("../../globalStyle/flex.css");
@import url("../../globalStyle/color.scss");
.warpper {
  .title {
    height:15px;
    .left {
      font-size: 14px;
      h4 {
        margin-left: 20px;
        font-weight: 400;
      }
      span {
        font-size: 20px;
        color: $color;
      }
    }
    .right {
      background-color: $color;
      color: #fff;
      padding: 6px 10px;
      border-radius: 6px;
      font-size: 12px;
    }
  }
  .dataList {
    margin-top: 20px;
  }
}
</style>
